package com.sljy.hzk.entity;

import java.util.List;

/**
 * Created  on 2018/7/10 0010
 *
 * @author 唐开阔
 * @describe 分区名称--数结构
 *
 */
public class DetectionPartitionEntity {

    /**
     * pName : 华大健康
     * children : [{"pName":"测试分区","children":[{"pName":"测试","children":[],"pId":36},{"pName":"测试地方","children":[],"pId":37},{"pName":"测试地方3而当前我热饭前wer","children":[],"pId":38}],"pId":26},{"pName":"华大分区2","children":[{"pName":"华大a","children":[],"pId":29},{"pName":"华大b","children":[],"pId":30},{"pName":"华大健康aaa","children":[],"pId":33},{"pName":"工种测试","children":[],"pId":34},{"pName":"测试工种","children":[],"pId":35},{"pName":"档案分区","children":[],"pId":39}],"pId":27},{"pName":"华大分区3","children":[{"pName":"华大a","children":[],"pId":31}],"pId":28}]
     * pId : 5
     */
    private String pName;
    private int pId;
    private String allName;
    private List<DetectionPartitionEntity> children;
    private Integer parentId;
    public String getpName() {
        return pName;
    }

    public String getAllName() {
        return allName;
    }

    public void setAllName(String allName) {
        this.allName = allName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public List<DetectionPartitionEntity> getChildren() {
        return children;
    }

    public void setChildren(List<DetectionPartitionEntity> children) {
        this.children = children;
    }


    public boolean isHaveChildren(){
        return !(children == null || children.size() == 0);
    }
}
